package org.anti996.ln_mybatis.model;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import java.io.Serializable;
import java.math.BigDecimal;
import java.time.LocalDateTime;

import com.baomidou.mybatisplus.annotation.TableLogic;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;

/**
 * <p>
 * 银行卡表
 * </p>
 *
 * @author Anti996 Authors
 * @since 2022-07-11
 */
@Getter
@Setter
@ApiModel(value = "Card对象", description = "银行卡表")
public class Card implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty("卡号")
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    @ApiModelProperty("用户名")
    private String username;

    @ApiModelProperty("余额")
    private BigDecimal balance;

    @ApiModelProperty("币种")
    private String currency;

    @ApiModelProperty("开卡日期")
    private LocalDateTime cardOpen;

    @ApiModelProperty("销卡日期")
    @TableLogic(value = "null", delval = "now()")
    private LocalDateTime cardClose;
}
